<?php

$patten = "/^\d{4}(\-|\/|.)\d{2}(\-|\/|.)\d{2}$/";
var_dump(preg_match($patten, "1991-07-06"));